package Text_21;

import java.util.Scanner;

public class ReverseOrder {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个四位的正整数：");
		int sum = sc.nextInt();
		int a[] = minimumSum(sum);
		for(int i=0;i<a.length;i++) {
			System.out.print(a[i]+" ");
		}
		
	}
	 public static int[] minimumSum(int num) {
		 int arr[] = new int[4];
		 int index = 0;
		 int ge = 0;
		 while(num>0) {
			 ge = num%10;
			 num = num/10;
			 arr[index] = ge;
			 index++;
		 }
		 
		 return arr;
	}

}
